home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
cli
/
ashell.txt
< prev
next >
Wrap
Text File
|
1994-08-27
|
40KB
|
1,057 lines
ASH V0.70
Copyright (c) 1986,1987 CSL/jdn
INTRODUCTION:
This is Version 0.70 of the ASH document file. If the program you're using
isn't V0.70 there's a good chance some of the features won't work as
documented in this file.
ASH is an acronym for 'A SHell'. It has some of the features I like best
from the shell I use the most. This is the only formal documentation for
ASH. The HELP key also provides a few screens of information that are
helpful if pressed while ASH is running. That information is contained in
the 'ash.hlp' file.
ASH is shareware and you're welcome to copy it and pass it along to as many
people as you want. Please include the copyright notice above in all
associated files. To contact me about ASH use the following address:
CSL, ATTN: ASH
Jerry Nowlin
318 N. Center Street
Plano, IL 60545
ASH may never be really 'finished' so any and all comments are welcome.
It's something that some of us (me), who prefer typing to clicking, needed
to be productive. It isn't perfect so please report any problems. If you
like ASH, you can report that too. If you like it enough to use it on a
regular basis please send along a few bucks. This will put your name on
the registered ASH user list and will enable me to notify you of any major
bug fixes or new releases. It will also help my wife appreciate the hours
I spend in front of my ST.
CONTENTS
INTRODUCTION ........................................................ 1
QUICK COMMANDS ...................................................... 2
BUILT-IN COMMANDS ................................................... 4
COMMAND HISTORY ..................................................... 8
HISTORY EDIT COMMANDS ............................................... 8
I/O REDIRECTION ..................................................... 11
COMMAND LINES ....................................................... 11
SET VARIABLES ....................................................... 12
ASH INITIALIZATION .................................................. 13
COMMAND SELECTION ................................................... 13
ASH SCRIPTS ......................................................... 14
LIMITATIONS ......................................................... 14
MISCELLANEOUS ....................................................... 15
V0.70 NOTES ......................................................... 15
- 1 -
ASH V0.70
QUICK COMMANDS:
The following list describes the ASH quick or single keystroke commands.
NOTE: these commands DO NOT go into the command history buffer.
ESC The escape key (ESC) puts ASH into history edit mode. In this
mode the current command line can be edited or previous commands
in the history buffer can be pulled back and edited. The editing
commands are explained in a later section of this document.
^L The control-L key (^L) will cause a listing of the command
history buffer to be displayed on the screen. There can be up to
23 command lines in the history buffer. The number preceding a
command line in the history buffer can be used with the ^R
command (see below) to repeat execution of the line.
^R [n-m] The control-R (^R) key will cause either the previous command
line, the 'n'th command line or the 'n'th through 'm'th command
lines to be re-executed. Unlike the other quick commands, a ^R
has to be followed by a carriage return. Due to the way the
history buffer is numbered, a sequence of command lines can be
repeated by repeating ^R's with the same value of 'n'. For
example, in the develop/debug cycle for the Icon language you
edit, translate and execute. The beginning of the history
listing generated with a ^L might look like this:
history list:
1 - iconx mortgage loan.dat
2 - icont mortgage.icn
3 - vix mortgage.icn
...
To repeat these three steps after completing the first cycle you
just keep invoking ^R with an 'n' of 3.
An alternative method would be to invoke ^R with the range '3-1'.
This would automatically execute command lines 3 through 1 in
that order. Due to the way command lines are numbered in
history, the high number in a range should be first if you want
the commands to be executed in the same order as they were
originally. If you want the commands to execute in reverse order
you can use '1-3'. Both orders are acceptable as long as the
history numbers in the range are valid.
^W The control-W (^W) key causes a what and who message about ASH to
be displayed on the screen. This information is similar to the
initial section of this document.
^P The control-P (^P) key causes the prompt to toggle back and forth
between simply displaying the current drive and displaying the
current drive and the current directory path. For example if you
- 2 -
ASH V0.70
were in the AUTO folder on drive A you could toggle your prompt
back and forth between:
[A:\AUTO]
and
[A:]
The default is to display the drive and path.
^V The control-V (^V) key makes the cursor visible. Some programs
that can be invoked from ASH cause the cursor to become
invisible. For instance MicroEMACS 3.7 and ASH itself assume
you're going back to the desktop when they exit so the cursor is
turned off. The ^V is a simple way to make it reappear.
BS/^H The backspace and control-H (^H) keys will cause the last
character typed to be erased.
^X/^U The control-X (^X) and the control-U (^U) keys will cause the
line currently being typed to be aborted. The aborted command
will NOT be included in the history buffer.
^C The control-C (^C) key will SOMETIMES cause the current running
command or program to abort. This doesn't always work and
repeated ^C's will sometimes cause ASH itself to abort. When a
program does abort its exit code is frequently munged into a
GEMDOS error that causes the 'Invalid Function' message to be
printed. ASH scripts can be aborted by typing a ^C after a pause
command has suspended a script.
^D/^Z The control-D (^D) and the control-Z (^Z) keys will cause ASH to
exit to the desktop fast with no looking back.
UNDO The UNDO key will cause ASH to ask the user if they want to exit
to the desktop. A 'y' will cause the program to exit. Any other
character will abort the exit.
CLR/HOME The CLR/HOME key will clear the screen and move the cursor to the
upper left corner of the screen.
HELP The HELP key will cause one of two different help messages to be
displayed. When in normal command mode a summary of the quick
and the built-in commands is displayed. When in the history edit
mode a list of the history editing commands is displayed.
Any other control characters typed to ASH are considered an error. You'll
be beeped and the character will be ignored. In addition TAB characters
(^I) typed as part of an ASH command line are automatically changed to
spaces.
- 3 -